<?php $this->layout='main' ?>

<script type="text/javascript">  
$(document).ready(function(){
	$("input").click(function() {
		if (this.parentNode.parentNode.className == 'username-div' && this.value == 'Username')
			this.value = '';
		if (this.parentNode.parentNode.className == 'password-div' && this.value == 'password')
			this.value = '';
	});
});
</script>

<div id="tagline"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/tagline.gif" alt="" /></div>

<div id="frog">Frog</div>
<div id="hello">Hello I'm ekos!</div>

<div id="buyers">
<div id="buyers-head"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/buyers.gif" alt="" /></div>

<!-- buyer form -->
<?php $form = $this->beginWidget('CActiveForm', array(
		'id'=>'login',
		'enableClientValidation'=>true,
		));
?>

<fieldset> 
	<div><?php echo $form->hiddenField($model, 'user_type_ID', array('value'=>'2')); ?></div>
	<div class="username-div">
		<div class="username"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/username.gif" alt="" /></div>
		<div class="textbox"><?php echo $form->textField($model, 'user_name', array('value'=>'Username')); ?></div>
	</div>

	<div class="password-div">
		<div class="password"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/password.gif" alt="" /></div>
		<div class="textbox"><?php echo $form->passwordField($model, 'password', array('value'=>'password')); ?></div>
	</div>

	<div class="login-button"><?php echo CHtml::imageButton(Yii::app()->request->baseUrl . '/images/login.gif'); ?></div>
	<div class="forgot-password"><?php echo CHtml::imageButton(Yii::app()->request->baseUrl . '/images/forgot-pass.gif'); ?></div>
<fieldset>
<?php $this->endWidget(); ?><!-- buyer form end -->
</div><!-- End Buyers Section -->

<div id="buyer-register">
<div class="register-text">
    <div>If not a registered <span>Buyer</span> yet,</div>
    <div>click below to get started.</div>
</div><!-- End Register Text -->
<div class="register-button"><a href="<?php echo Yii::app()->request->baseUrl ?>/registration/buyer"><img src="<?php echo Yii::app()->request->baseUrl ?>/images/register.jpg" alt="" /></a></div>    
</div><!-- End Buyer Register -->


<div id="suppliers">
<div id="suppliers-head"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/suppliers.gif" alt="" /></div>

<!-- supplier form -->
<?php $form = $this->beginWidget('CActiveForm', array(
		'id'=>'login2',
		'enableClientValidation'=>true,
		));
?>

<fieldset> 
	<div><?php echo $form->hiddenField($model, 'user_type_ID', array('value'=>'1')); ?></div>
	<div class="username-div">
		<div class="username"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/username.gif" alt="" /></div>
		<div class="textbox"><?php echo $form->textField($model, 'user_name', array('value'=>'Username')); ?></div>
	</div>

	<div class="password-div">
		<div class="password"><img src="<?php echo Yii::app()->request->baseUrl; ?>/images/password.gif" alt="" /></div>
		<div class="textbox"><?php echo $form->passwordField($model, 'password', array('value'=>'password')); ?></div>
	</div>

	<div class="login-button"><?php echo CHtml::imageButton(Yii::app()->request->baseUrl . '/images/login.gif'); ?></div>
	<div class="forgot-password"><?php echo CHtml::imageButton(Yii::app()->request->baseUrl . '/images/forgot-pass.gif'); ?></div>
<fieldset> 
<?php $this->endWidget(); ?><!-- supplier form end -->
</div><!-- End Suppliers Section -->


<div id="suppliers-register">
<div class="register-text">
    <div>If not a registered <span>Supplier</span> yet,</div>
    <div>click below to get started.</div>
</div><!-- End Register Text -->
<div class="register-button"><a href="<?php echo Yii::app()->request->baseUrl ?>/registration/supplier"><img src="<?php echo Yii::app()->request->baseUrl ?>/images/register.jpg" alt="" /></a></div>    
</div><!-- End Suppliers Register -->